<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>首页</title>
    <script src="/before/js/jquery.min.1.8.2.js" type="text/javascript"></script>
    <script src="/after/js/layer/layer.js" charset="utf-8"></script>
</head>
<style>
</style>
<body>
    <!--头-->
    <div id="top"></div>
    <!--活动幻灯片-->
    <IFRAME NAME="content_frame" width=100% height=770px   frameborder="0" scrolling="no" marginwidth=0 marginheight=0 SRC="/active/toActive.do" ></IFRAME>
    <!--产品推荐-->
    <IFRAME NAME="content_frame" width=100% height=180px frameborder="0" scrolling="no" marginwidth=0 marginheight=0 SRC="/stage/LQ_recommend.ftl" ></IFRAME>
    <!--品牌线下-->
    <!--<IFRAME NAME="content_frame" width=100% height="450px" frameborder="0" scrolling="no" marginwidth=0 marginheight=0 SRC="/stage/LQ_brand.ftl" ></IFRAME>-->
    <!--产品展示-->
    <IFRAME NAME="content_frame" width=100% height="550px" frameborder="0" scrolling="no" marginwidth=0 marginheight=0 SRC="/stage/LQ_exclusive.ftl" ></IFRAME>
    <!--热销-->
    <IFRAME NAME="content_frame" width=100% height="350px" frameborder="0" scrolling="no" marginwidth=0 marginheight=0 SRC="/stage/LQ_enjoy.ftl" ></IFRAME>
    <!--右边-->
    <div id="page">
        <div id="right"></div>
    </div>
    <!--尾-->
    <div id="bottom"></div>
</body>
<script>

    $(function(){
        getIndexJson();
        $("#right").load("/stage/LQ_right.ftl");
        $("#top").load("/czgIndexTop/getBtype.do");
        $("#bottom").load("/stage/Czg_index_foot.ftl");
    })
    var getIndexJson = function(){
        //读取本地JSON文件
        $.getJSON("/before/template/index.json",function(data){
            $.each(data,function(index,info){//参数分别是键值对
                var $html = "<div id=page"+index+" style='width:1200px;margin:0 auto;'>1</div>";
                $("#page").append($html);
                $("#page"+index).load("/useModule/createTemplate.do?id="+info);
            })
        })
    }
    //  显示客服聊天界面
    function showTalk(){
        layer.open({
            type:2,
            title:'客服聊天',
            fix:'false',
            maxmin:true,
            area:['800px','700px'],
            content:'/main/skipToTalk.do',
            end:function(){
            }
        })
    }
</script>
</html>